package com.wsy.service.impl;

import com.wsy.mapper.AttendenceMapper;
import com.wsy.pojo.Attendence;
import com.wsy.service.AttendenceService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service("attendenceService")
@Transactional
public class AttendenceServiceImpl implements AttendenceService {

    @Resource
    private AttendenceMapper attendenceMapper;


    @Override
    public List<Attendence> getAll() {
        return attendenceMapper.getAll();
    }

    @Override
    public List<Attendence> getAll1(String staffName) {
        return attendenceMapper.getAll1(staffName);
    }

    @Override
    public void insert(Attendence attendence) {
        attendenceMapper.insert(attendence);
    }
}
